// feedback.scss

.feedback-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;

    .app-title {
      margin-right: 20rpx;
      font-size: 24px;
      font-weight: bold;
      color: #333;
    }

    .page-title {
      font-size: 18px;
      color: #666;
    }
  }

  .feedback-content {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;

    textarea,
    .rich-text {
      // 如果使用富文本编辑器，请根据实际样式调整
      height: 100px;
      border: 1px solid #ccc;
      border-radius: 4px;
      padding: 8px;
      font-size: 16px;
      line-height: 24px;
      outline: none;
    }
    .tips {
      display: flex;
      justify-content: center;
      font-size: 15rpx;
      color: #aaa;
      width: 100%;
    }
    .image-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      width: 100%;
      .image-item {
        position: relative;
        width:25%;
        height: 300rpx;
        margin: 40rpx 10rpx;
        padding: 10rpx;
        border: 1px solid #eee;
        .feedback-image {
          height: 100%;
          width: 100%;
        }
        .icon {
          position: absolute;
          top: -15rpx;
          right: -15rpx;
          width: 30rpx;
          height: 30rpx;
        }
      }
    }

    button {
      margin-top: 40rpx;
    }
  }

  .picker {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin-bottom: 15px;

    .contact-label {
      font-size: 14px;
      color: #666;
      margin-right: 10px;
    }

    input[type="text"] {
      height: 36px;
      width: 90%;
      border: 1px solid #ccc;
      border-radius: 4px;
      padding: 0 10px;
      font-size: 16px;
      line-height: 36px;
      margin-top: 30rpx;
      outline: none;
    }
  }

  .submit-button {
    height: 40px;
    border-radius: 20rpx;
    font-size: 18px;
    color: #fff;
    background-color: #ffcb24;
  }

  .submit-hover {
    background: #ffcc24ad;
  }

  .status-message {
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
    padding: 5px 0;

    &.success {
      margin-top: 40rpx;
      padding: 20rpx;
      border: 1px solid #4cd964;
      border-radius: 4px;
      background-color: rgba(76, 217, 100, 0.1);
    }

    &.error {
      margin-top: 40rpx;
      padding: 20rpx;
      border: 1px solid #f55555;
      border-radius: 4px;
      background-color: rgba(245, 85, 85, 0.1);
    }
  }
}